package com.zhangyj.db.util;

 class MysqlUtil extends BaseDBUtil {

	
	 public	String buildPagnationSql(String sql, int pageNo, int size, int tatalCount, String orderField, String orderTable, boolean isDesc) {
		StringBuilder builder = new StringBuilder();
		builder.append(sql);
		addOrder(builder, orderField, orderTable, isDesc);
		builder.append(" limit ").append((pageNo - 1) * size).append(",").append(size);
		return builder.toString();
	}

}
